//
//  AdsHttps.m
//  project
//
//  Created by Apple on 2017/11/12.
//  Copyright © 2017年 Macmini. All rights reserved.
//

#import "AdsHttps.h"

@implementation AdsHttps

+ (AdsHttps *)sharedManager
{
    static AdsHttps *sharedAccountManagerInstance = nil;
    static dispatch_once_t predicate;
    dispatch_once(&predicate, ^{
        sharedAccountManagerInstance = [[self alloc] init];
    });
    return sharedAccountManagerInstance;
}


//添加广告
- (void)saveAdds:(NSDictionary *)parmDic sucessBlock: (ScuessBlock)sucessBlock Error:(ErrorBlock) erroBlock {
    
    NSMutableDictionary *requestParameter = [NSMutableDictionary dictionary];
    requestParameter = parmDic.mutableCopy;
    
    [[HGNetworkingRequest shareRequest] startPostRequest:@"/ad/saveAd" parameter:requestParameter showNetworkErrorAlert:YES onCompletion:^(id jsonResponse) {
        
        NSLog(@"%@", jsonResponse);
        NSInteger result = [[jsonResponse objectForKey:@"code"]integerValue];
       
        
    } onError:^(id jsonResponse) {
        
    }];
}
@end
